//
//  LFBWebViewController.m
//  loveFreshBeen
//
//  Created by Feng on 2017/7/10.
//  Copyright © 2017年 feng. All rights reserved.
//

#import "LFBWebViewController.h"

@interface LFBWebViewController ()

@property(nonatomic,weak) UIWebView *webView;

@end

@implementation LFBWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    self.webView = webView;
    [self.view addSubview:webView];
}

- (void)setURLStr:(NSString *)URLStr
{
    NSURL *url = [NSURL URLWithString:URLStr];
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
    
    [self.webView loadRequest:request];
}

@end
